package org.uim.cricket.storage.backup;

import org.uim.cricket.storage.StorageProperties;

public class BackupFetchedSeries extends BackupFetchedData {

	public BackupFetchedSeries(StringBuilder data) {
		super(data);
	}
	
	@Override
	public boolean backup(String[] args) throws Exception {
		if (args == null || args.length == 0) throw new Exception ("Arguments for backup can't be null!");
		
		String fName = StorageProperties.getValue("repo.fs.series.dir");
		if (!fName.endsWith("/")) fName += "/" + args[0] + ".html";
		return this.backupFunc(fName);
	}

}
